<template>
  <div>
    <div class="search">
      <HyForm v-bind="searchFormConfig" :formData="formData">
        <template #header>
          <h2>高级检索</h2>
        </template>
        <template #footer>
          <el-button>重置</el-button>
          <el-button type="primary">搜索</el-button>
        </template>
      </HyForm>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import HyForm from '@/base-ui/form'

export default defineComponent({
  props: {
    searchFormConfig: {
      type: Object,
      require: true
    }
  },
  components: {
    HyForm
  },
  setup() {
    const formData = ref({
      name: '',
      password: '',
      sport: '',
      time: ''
    })
    return {
      formData
    }
  }
})
</script>

<style scoped></style>
